<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/default.xhtml"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">

		<h:form id="loginForm">
			<p:panelGrid id="panel" columns="2">
				<p:outputLabel value="Pesel: " />
				<p:inputText value="#{userSessionBean.pesel}" />

				<p:outputLabel value="Hasło: " />
				<p:password value="#{userSessionBean.password}" />
				
				<p:commandButton value="Zaloguj" action="#{userSessionBean.logUserIn}"/>
				<p:commandButton value="Wyczyść">
					<p:ajax update="panel" resetValues="true" />
				</p:commandButton>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
